package com.zw.rpc.transport;

import java.io.InputStream;
import java.io.OutputStream;

/**
 * 网络请求处理handler
 * @author zw
 */
public interface RequestHandler {

    /**
     * 处理请求
     *
     * @param received 请求输入流
     * @param toResp 请求输出流
     */
    void onRequest(InputStream received, OutputStream toResp);


}
